<?php
//
// +------------------------------------------------------------------------+
// | Gecko Framework                                                        |
// +------------------------------------------------------------------------+
//
require_once('Gecko/Form/Validator/Interface.php');
require_once('Zend/Validate/EmailAddress.php');

/**
 * Form Validator that extends Zend one and provides
 * JSON Validation in client
 *
 * @package Gecko.Form.Validator;
 * @author Christopher Valderrama <valderrama.christopher@gmail.com>
 * @copyright Copyright (c) 2008
 * @version $Id$
 * @access public
 */
class Gecko_Form_Validator_EmailAddress extends Zend_Validate_EmailAddress implements Gecko_Form_Validator_Interface {
	/**
	 * Gets the JSON Validation code for
	 * email validation
	 *
	 * @return string
	 */
	public function getJSONValidationCode() {
		return "content: \"email\"";
	}
}
?>